package com.hyts.network.core;

import com.hyts.network.base.ClientFactoryBean;


/**
 * project-name:gitee-extends-toolbox
 * package-name:com.hyts.ext.network.service
 * author:Libo/Alex
 * create-date:2018-10-27 22:57
 * copyright:libo-hyts-github
 * email:libo2dev@aliyun.com
 * description:此类主要用于: 用于客户端接入使用的覆盖接口
 */
public abstract class Client<P,R,MODEL> extends ClientFactoryBean<MODEL> {

    public Client(String ip, int port) {
        super(ip, port);
    }

    public Client(String ip, int port, MODEL client) {
        super(ip, port, client);
    }

    public Client(int port, MODEL client) {
        super(port, client);
    }

    public Client(String ip, MODEL client) {
        super(ip, client);
    }

    public Client(MODEL client) {
        super(client);
    }

    public Client() {
    }

    /**
     * @return
     */
    public abstract R execute(P param);

}
